
<!DOCTYPE html>
<html lang="ja">

<head>
<meta charset="utf-8">
<title>Shellcoder&#039;s Challenge!</title>
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript">
function auth(first)
{
	$.post('cgi-bin/auth.py',
		{
		'user': document.getElementById("user").value,
		'pass': document.getElementById("pass").value
		}, 
		function(data)
		{
			result = data.substring(0, 2);
			if(result == "ok"){
				location.href="contents.html";
			}else{
				if(first == 0){
					txt = "<font color=\"#ff0000\">auth err!</font>";
					document.getElementById("mes").innerHTML = txt;
				}
			}
		}
	);
}
</script>
</head>

<body onload="javascript:auth(1)">
<a href="http://www.seccon.jp/">
<img src="" width="191" height="34" alt="SECCON" border="0">
</a>

<h1>Shellcoder&#039;s Challenge!</h1>

<table border="0" width="400">
<tr valign="top">
<td>

<table border="0">
<tr><td>UserID:</td><td><input type="text" id="user" value=""></td></tr>
<tr><td>Password:</td><td><input type="password" id="pass" value=""></td></tr>
<tr><td id="mes"></td><td><div align="right">
  <input type="button" value=" login " onclick="javascript:auth(0)">
  </div></td></tr>
</table>

<p><a href="./register.html">create new account</a></p>

</td>

</tr>
</table>

</body>
</html>

